package com.sg.dto.biz.app.common;

import com.sg.common.dto.BaseDto;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.Objects;

/**
 * @desc CustomExecuteCycleDto
 * @使用场景
 */
@Data
public class CustomExecuteCycleDto extends BaseDto implements Serializable {

    /**
     * 执行周期阶段ID
     */
    @ApiModelProperty("执行周期阶段ID")
    private String executeCycleStageId;

    /**
     * 被评对象目标周期ID
     */
    @ApiModelProperty("被评对象目标周期ID")
    private String evaObjTargetCycleId;

    /**
     * 周期ID
     */
    @ApiModelProperty("周期ID")
    private String cycleId;

    /**
     * 周期名称
     */
    @ApiModelProperty("周期名称")
    private String cycleStandardName;

    /**
     * 周期开始时间
     */
    @ApiModelProperty("周期开始时间")
    private Date cycleStartTime;

    /**
     * 周期结束时间
     */
    @ApiModelProperty("周期结束时间")
    private Date cycleEndTime;

    /**
     * 填报开始时间
     */
    @ApiModelProperty("填报开始时间")
    private Date fillStartTime;

    /**
     * 是否父周期 TRUE:是 FALSE:否
     */
    @ApiModelProperty("是否父周期")
    private String isFatherCycle;

    /**
     * 是否子周期 TRUE:是 FALSE:否
     */
    @ApiModelProperty("是否子周期")
    private String isSubCycle;

    /**
     * 是否中期 TRUE:是 FALSE:否
     */
    @ApiModelProperty("是否中期")
    private String isMetaphase;

    /**
     * 是否过程周期阶段 TRUE:是 FALSE:否
     */
    @ApiModelProperty("是否过程周期阶段")
    private String isProcessCycleStage;

    /**
     * 是否自定义执行周期阶段 TRUE:是 FALSE:否
     */
    @ApiModelProperty("是否自定义执行周期阶段")
    private String isDefinedExecuteCycleStage;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        if (!super.equals(o)) return false;
        CustomExecuteCycleDto that = (CustomExecuteCycleDto) o;
        return executeCycleStageId == that.executeCycleStageId && evaObjTargetCycleId == that.evaObjTargetCycleId && cycleId == that.cycleId && cycleStandardName == that.cycleStandardName && cycleStartTime == that.cycleStartTime && cycleEndTime == that.cycleEndTime && fillStartTime == that.fillStartTime && isFatherCycle == that.isFatherCycle && isSubCycle == that.isSubCycle && isMetaphase == that.isMetaphase && isProcessCycleStage == that.isProcessCycleStage && isDefinedExecuteCycleStage == that.isDefinedExecuteCycleStage;
    }

    @Override
    public int hashCode() {
        return Objects.hash(super.hashCode(), executeCycleStageId, evaObjTargetCycleId, cycleId, cycleStandardName, cycleStartTime, cycleEndTime, fillStartTime, isFatherCycle, isSubCycle, isMetaphase, isProcessCycleStage, isDefinedExecuteCycleStage);
    }

}
